package com.java2404.micro.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java2404.micro.common.dto.GoodsDTO;
import com.java2404.micro.common.dto.OrderDTO;
import com.java2404.micro.common.entity.Order;
import com.java2404.micro.common.entity.PageBean;
import com.java2404.micro.common.resp.Result;

/**
 * @User userlq
 * @Date 2025/1/5 19:06
 * @Classname MerchantService
 * @Description 订单接口
 */
public interface OrderService extends IService<Order> {
    // 分页查询所有订单信息
    PageBean<OrderDTO> showAllOrders(Integer pageNum, Integer pageSize);

    // 分页查询商家所有订单信息
    PageBean<OrderDTO> showAllOrdersBymid(Integer pageNum, Integer pageSize, Integer mid);

    // 分页查询用户所有订单信息
    PageBean<OrderDTO> showAllOrdersByuid(Integer pageNum, Integer pageSize, Integer uid);

    Result<PageBean<GoodsDTO>> ShowGoods(int i, int i1);
}
